package _05LinkedHashMap的使用;

import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;

public class DemoLinkedHashMap {
    public static void main(String[] args) {
        Map<String,String> map = new LinkedHashMap<>();
        map.put("三国演义","罗贯中");
        map.put("红楼梦","曹雪芹");

        map.put("西游记","吴承恩");
        map.put("java","高斯林");

        Set<String> keySet = map.keySet();

        for (String s : keySet) {
            System.out.println(s+"="+map.get(s));
        }
    }
}
